from yawSrc.tools.getPlotly import get2dFig, get2dFig
from yawSrc.tools.loadFile import toLineRegressCsv, toAttrCsv, toLineRegressAttrCsv, fitLineRegressCsv

from common.config import yawConfig as Config

def lineRegress():
    toLineRegressCsv(Config.onlSurfaceProcess, Config.onlLineRegress)
    fitLineRegressCsv(Config.onlLineRegress, Config.onlLineRegress)  # 曲线拟合
    toLineRegressAttrCsv(Config.onlLineRegress, Config.onlLineRegressAttr)


if __name__ == '__main__':
    lineRegress()
